﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using RipPoll.Library;

namespace RipPoll.Services.Contracts
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface ICommunityServices
    {
        [OperationContract]        
        string[] GetZipCodesForCommunityId(int communityId);

        [OperationContract]
        void AddCommunity(CommunityPE communityPE, UserPE upe);

        [OperationContract]
        List<CommunityPE> GetUnApprovedCommunities();

        [OperationContract]
        void ApproveCommunity(int id);

        [OperationContract]
        List<CommunityPE> GetUserCommunities(int userId);
    }
    
}
